package com.jmb.demo2;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
@Component("mySchool2")
public class School {
//    @Value("大四")
    @Value("${grade}")
    private String grade;
//    @Value("河南大学")
    @Value("${University}")
    private String University;

    public String getGrade() {
        return grade;
    }

    public String getUniversity() {
        return University;
    }
}
